//
//  YBMessageViewModel.swift
//  Moonlight
//
//  Created by 清风徐来 on 2023/6/30.
//  Copyright © 2023 Moonlight Game Streaming Project. All rights reserved.
//

import UIKit

class YBMessageViewModel: BaseViewModel {

    lazy var messageModels = [YBMessageModel]()
}


// MARK: - 网络请求
extension YBMessageViewModel {
    
    /// 获取消息列表
    func req_messageListInfo(_ params: [String: Any], handler: @escaping BKResultHandler) {
        self.postReq(path: NetApiPort.MessageInfo.list, params: params, handler: handler)
    }
    
    /// 获取消息详情
    func req_messageDetailInfo(_ id: String, handler: @escaping BKResultHandler) {
        self.getReq(path: NetApiPort.MessageInfo.detail + "/" + id, handler: handler)
    }
    
}
